package uk.ac.glasgow.demosocs.impl;

/**
 * Represents an election result for a Simple Plurality
 * election.
 *  
 */

import java.util.ArrayList;
import java.util.List;

import uk.ac.glasgow.demosocs.Candidate;
import uk.ac.glasgow.demosocs.ElectionResult;
import uk.ac.glasgow.demosocs.Option;

public class ElectionResultImpl implements ElectionResult, Option {
	
	private List<Option> winningCandidates;
	
	/**
	 * Constructor for an election result.
	 * @param c - The winning Candidate for the election.
	 */
	public ElectionResultImpl(Option c){
		winningCandidates = new ArrayList<Option>();
		winningCandidates.add(c);
	}
	
	public ElectionResultImpl(){
		winningCandidates = new ArrayList<Option>();
	}
	
	/**
	 * Returns a list of winning candidates.
	 */
	@Override
	public List<Option> getWinningOptions() {
		return winningCandidates;
	}

	@Override
	public String getDisplayableDescription() {
		return "";
	}

}
